import yaml

from autoTest_ecshop.utils.getPath import get_path


def read_file(filename):
    with open(get_path(filename),'r',encoding='utf-8') as f:
        return yaml.safe_load(f)
